package com.vhall.component.service.rbac;


import com.vhall.component.entity.rbac.vo.ActionsRspVO;
import com.vhall.component.entity.rbac.vo.ActionsVO;

import java.util.List;

/**
 * @author dalong
 * @date 2021-05-18 14:58
 */
public interface RbacRoleActionService {

    /**
     * 根据角色查询操作权限id
     *
     * @param roleId
     * @return
     */
    List<Integer> getActionIdListByRoleId(Integer roleId);

    /**
     * 获取权限列表
     *
     * @param actionIdList
     * @param roleId
     * @return
     */
    List<ActionsRspVO> getActionsListByActionIdList(List<Integer> actionIdList, Integer roleId);

    /**
     * 初始化角色权限
     *
     * @param roleId
     * @return
     */
    boolean initRoleActionList(Integer roleId);

    /**
     * 根绝角色获取权限列表
     *
     * @param roleId
     * @return
     */
    List<ActionsVO> listActionByRoleId(Integer roleId);
}
